<template>
  <div class="work-container">
    <div class="head-title">森鹿报工系统</div>
    <div class="banner">
      <img class="image" src="@/assets/images/h5/banner01.jpg"></img>
    </div>
    <div class="panel">
      <div class="grid-body">
        <div class="grid-item-box" @click="gotoJob">
          <img class="image" src="@/assets/images/h5/faqi.svg"></img>
          <div class="text">报工单</div>
        </div>
        <div class="grid-item-box" @click="gotoRfwork">
          <img class="image" src="@/assets/images/h5/lishi.svg"></img>
          <div class="text">历史报工</div>
        </div>
        <div class="grid-item-box" @click="gotoDbinfo">
          <img class="image" src="@/assets/images/h5/shenhe.svg"></img>
          <div class="text">报工审核</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: "H5Index",
  components: {
  },
  data() {
    return {

    }
  },
  created() {
  },
  methods: {
    gotoJob() {
      this.$router.push({ path: '/h5/job' })
    },
    gotoRfwork() {
      this.$router.push({ path: '/h5/rfwork' })
    },
    gotoDbinfo() {
      this.$router.push({ path: '/h5/dbinfo' })
    }
  }
};
</script>

<style lang="scss" scoped>
.work-container {
  height: 100vh;
  padding: 15px;
  background: linear-gradient(135deg, #c9deff 4%, white 80%);
}

.head-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.banner{
  height: 125px;
  img{
    display: block;
    width: 100%;
    height: 125px;
    border-radius: 5px;
    object-fit: cover;
  }
}
.panel {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
}

.grid-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.grid-item-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  cursor: pointer;

  .image {
    width: 38px;
    height: 38px;
  }

  .text {
    margin-top: 12px;
    font-size: 16px;
    color: #333;
  }
}
@media (max-width: 550px) {
}
</style>
